package com.ScoresSystem.mapper;

import com.ScoresSystem.pojo.Student;
import com.ScoresSystem.pojo.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SubjectMapper {

    int updateSubject(Subject subject);

    int addSubject(Subject subject);

    List<Subject> getAllSubject(@Param("name") String name, @Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);

    int getCount(@Param("name") String name);

    Subject findSubjectByName(@Param("name") String name);

    int deleteSubject(@Param("id") String id);

    // 查询所有科目
    List<Subject> subjectSelect();
}
